//
//  LXAppointmentedCell.m
//  ZuLinProject
//
//  Created by bancheng on 2022/7/9.
//  Copyright © 2022 LX_App. All rights reserved.
//

#import "LXAppointmentedCell.h"
#import "LXSignContractModel.h"
@implementation LXAppointmentedCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor colorWithHexString:@"#FAFBFC"];
    [self.backView addCorner:3];
    [self.btn1 addCorner:2];
    
}

- (void)setModel:(LXSignContractModel *)model{
    _model = model;
    self.label1.text = [NSString stringWithFormat:@"%@ %@",model.carBrand, model.carMode];
    
    NSString *uName = @"-";
    if (!StringIsEmpty(model.dname)) {
        uName = model.dname;
    }
    else if (!StringIsEmpty(model.nickname)) {
        uName = model.nickname;
    }
    
    
    self.label2.text = [NSString stringWithFormat:@"客户：%@ %@",uName,model.userPhone];
    
    NSString *time = [NSString timestampSwitchTime:[NSString timeSwitchTimestamp:model.appointTime andFormatter:@"yyyy-MM-dd HH:mm"] / 1000 andFormatter:@"HH:mm"];
    self.label3.text = [NSString stringWithFormat:@"%@预约",time];

}

@end
